package com.sunop.panticlass.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("noice")
@Builder
public class ClassPO {
    @TableId
    private int id;             //没用的（不用填）
    @TableField("teacher_id")
    private int teacherId;       // 教师ID
    @TableField("teacher_name")
    private String teacherName;     // 教师姓名
    @TableField("class_id")
    private int classId;         // 班级ID
    @TableField("content")
    private String content;         // 消息内容
    @TableField("send_time")
    private LocalDateTime sendTime; // 发送时间
    @TableField("priority")
    private Integer priority;       // 优先级 0 普通消息，1 紧急消息，2 严重消息
}